-
Notifications
You must be signed in to change notification settings - Fork 2
Traduction de api/route-object.md
#7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Et une de plus !
docs/en/api/route-object.md
Outdated
@@ -1,89 +1,89 @@ | |||
# The Route Object (En) <br><br> *Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vue-router).* | |||
# L'Objet `Route` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L'objet
docs/en/api/route-object.md
Outdated
|
||
A **route object** represents the state of the current active route. It contains parsed information of the current URL and the **route records** matched by the URL. | ||
Un **objet `Route`** représente l'état de actuel de la route active. Il contient des informations analysées à propos de l'URL courante et **les itinéraires de route** appariés par l'URL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
l'état actuel
docs/en/api/route-object.md
Outdated
|
||
- Inside components as `this.$route` | ||
- À l'intérieur des composants en tan que `this.$route` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en tant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😨
docs/en/api/route-object.md
Outdated
|
||
- Inside `$route` watcher callbacks | ||
- À l'intérieur des fonctions de rappel de pendant l'observation de `$route` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
À l'intérieur des fonctions de rappel des observateurs de
$route
docs/en/api/route-object.md
Outdated
|
||
``` js | ||
router.beforeEach((to, from, next) => { | ||
// to and from are both route objects | ||
// to et from sont tous les deux des objets Route |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to
etfrom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je PR l'original
docs/en/api/route-object.md
Outdated
|
||
``` js | ||
const router = new VueRouter({ | ||
scrollBehavior (to, from, savedPosition) { | ||
// to and from are both route objects | ||
// to et from sont tous les deux des objets Route |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to
etfrom
docs/en/api/route-object.md
Outdated
} | ||
}) | ||
``` | ||
|
||
### Route Object Properties | ||
### Propriétés de l'Objet Route |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
l'objet route
ou
l'objet
Route
docs/en/api/route-object.md
Outdated
|
||
An Array containing **route records** for all nested path segments of the current route. Route records are the copies of the objects in the `routes` configuration Array (and in `children` Arrays): | ||
Un `Array` contenant les **les itinéraires de la route** pour chaque segment de chemin imbriqué de la route courante. Les itinéraires de la route sont des copies des objets dans l'`Array` de configuration `routes` (et dans les `Array`s `children`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dans le tableau de configuration
les tableaux
children
https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Array
Corrigé |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seconde relecture ok
No description provided.